﻿using System;
using System.Collections.Generic;
using System.Text;

namespace XXX.Models.XXXEntities
{
    public class u8wms001 
    {
            public string label { get; set; }
            public string value { get; set; }
    }

    /// <summary>
    /// 仓库档案
    /// </summary>
    public class Warehouse
    {
        public string cWhcode { get; set; }
        public string cWhname { get; set; }
        public string bWhpos { get; set; }
        
    }
    /// <summary>
    /// 货位档案
    /// </summary>
    public class Position
    {
        public string cPosCode { get; set; }
        public string cPosName { get; set; }
        public string cWhCode { get; set; }
        public string bPosEnd { get; set; }
    }
    /// <summary>
    /// 存货档案
    /// </summary>
    public class Inventory
    {
        public string cInvCode { get; set; }
        public string cInvName { get; set; }
        public string cInvStd { get; set; }
        public string cInvAddCode { get; set; }
        public string cDefWareHouse { get; set; }
        public string cPosition { get; set; }
       
    }
    /// <summary>
    /// 未入库到货单--不检验
    /// </summary>
    public class PuArrivalWrk
    {
        public string cCode { get; set; }
        public DateTime dDate { get; set; }
        public string cVenName { get; set; }
        public string cVenCode { get; set; }
        public string cPtCode { get; set; }
        public string cDepCode { get; set; }
        public string cPersonCode { get; set; }
        public string cInvCode { get; set; }
        public string cInvName { get; set; }
        public string cComUnitName { get; set; }        
        public decimal wrksl { get; set; }
        public decimal scanqty { get; set; }
        public decimal iQuantity { get; set; }
        public decimal fValidInQuan { get; set; }
        public int autoid { get; set; }
        public int id { get; set; }
        public string cWhCode { get; set; }
        public string cPosition { get; set; }
        public int ivouchrowno { get; set; }
    }


    /// <summary>
    /// 未入库到货--检验
    /// </summary>
    public class PuArrivalQC
    {
        public string ccheckcode { get; set; }
        public string ccode { get; set; }
        public string songhuocode { get; set; }
        public DateTime dDate { get; set; }
        public string cVenName { get; set; }
        public string cVenCode { get; set; } 
        public string cInvCode { get; set; }
        public string cInvName { get; set; }
        public string cComUnitName { get; set; }
        public decimal wrksl { get; set; }
        public decimal scanqty { get; set; }
        public decimal iQuantitySum { get; set; }
        //public decimal fValidInQuan { get; set; }
        public int icheckid { get; set; }
        //public int id { get; set; }
        public string cWhCode { get; set; }
        //public int ivouchrowno { get; set; }
    }
    /// <summary>
    ///  到货拒收单
    /// </summary>
    public class PuArrivalRefuse
    {
        public string cCode { get; set; }
        public string cSongHuoCode { get; set; }
        public string cVenName { get; set; }
        public string cVenCode { get; set; }
        public string cInvCode { get; set; }
        public string cInvName { get; set; }
        public string cComUnitName { get; set; }
        public decimal fRefuseQuantity { get; set; }
        public decimal fSumRefuseQuantity { get; set; }
        public decimal jushousl { get; set; }
        public decimal scanqty { get; set; }
        public int autoid { get; set; }
        public int id { get; set; } 
        public int ivouchrowno { get; set; }
    }


    /// <summary>
    /// 扫码保存内容
    /// </summary>
    public class PuArrivalBarcode
    {
        /// <summary>
        /// 组织
        /// </summary>
        public string cOrg { get; set; }
        public string cCode { get; set; }
        public string cVenName { get; set; }
        public string cVenCode { get; set; }
        public string cDepCode { get; set; }
        public string cPersonCode { get; set; }
        public string cPtCode { get; set; }
        public string cWhcode { get; set; }    
        public string cType { get; set; }
        public string cUserId { get; set; }
        public string cUserName { get; set; }
        //密码，用于 更新co的config
        public string cPwd { get; set; }
        public DateTime dDate { get; set; }
        //public List<PuArrivalBarcodes> itemList { get; set; }
        public List<FenPeiList> fenpeilist { get; set; }
    }
    public class PuArrivalBarcodes
    {
        public int autoid { get; set; }
        public string cPosCode { get; set; }
        public string cInvCode { get; set; } 
        public decimal scanqty { get; set; }

    }
    public class FenPeiList
    {
        /// <summary>
        /// 来源id
        /// </summary>
        public int autoid { get; set; }
        public string cBarcode { get; set; }
        public string cBatch { get; set; }
        public string cInvCode { get; set; }
        public string cPosCode { get; set; }
        public string cPosCode2 { get; set; }
        public decimal iQuantity { get; set; }
        
    }

    /// <summary>
    /// 扫码保存内容
    /// </summary>
    public class ScanBarcode
    {
        /// <summary>
        /// 组织
        /// </summary>
        public string cOrg { get; set; }
        public string cCode { get; set; }
        public string cVenName { get; set; }
        public string cVenCode { get; set; }
        public string cDepCode { get; set; }
        public string cPersonCode { get; set; }
        public string cPtCode { get; set; }
        public string cWhcode { get; set; }
        public string cType { get; set; }
        public string cUserId { get; set; }
        public string cUserName { get; set; }
        //密码，用于 更新co的config
        public string cPwd { get; set; }
        public DateTime dDate { get; set; } 
        public List<ScanBarcodes> fenpeilist { get; set; }
    }

    public class ScanBarcodes
    {
        public int autoid { get; set; }
        public string barcode { get; set; }
        public string batch { get; set; }
        public string invcode { get; set; }
        public decimal quantity { get; set; }

    }
    /// <summary>
    ///销售出库-扫码保存内容
    /// </summary>
    public class ScanBarcodeSA
    {
        /// <summary>
        /// 组织
        /// </summary>
        public string cOrg { get; set; }
        public string cCode { get; set; }
        public string cCusName { get; set; }
        public string cCusCode { get; set; }
        public string cDepCode { get; set; }
        public string cPersonCode { get; set; }
        public string cPtCode { get; set; }
        public string cWhcode { get; set; }
        public string cType { get; set; }
        public string cUserId { get; set; }
        public string cUserName { get; set; }
        //密码，用于 更新co的config
        public string cPwd { get; set; }
        public DateTime dDate { get; set; } 
        public List<FenPeiList> fenpeilist { get; set; }
    }


    /// <summary>
    ///生产入库-扫码保存内容
    /// </summary>
    public class ScanBarcodeMo
    {
        public string MoCode { get; set; }
        public string cCode { get; set; }
        public int MoDId { get; set; }
        public string InvCode { get; set; }
        public string cwhcode { get; set; }
        public string cType { get; set; }
        public string cUserId { get; set; }
        public string cUserName { get; set; }
        public DateTime dDate { get; set; }
        public List<ScanBarcodes> fenpeilist { get; set; }

    }
    /// <summary>
    /// 调拨单,未审核的调拨单
    /// </summary>
    public class TransVouch
    {
        public string cTVCode { get; set; }
        public DateTime dTVDate { get; set; }   
        public string cInvCode { get; set; }
        public string cInvName { get; set; }
        public string cComUnitName { get; set; } 
        public decimal scanqty { get; set; }
        public decimal iTVQuantity { get; set; }
        public decimal wrksl        { get; set; }
       
        public long autoid { get; set; }
        public long id { get; set; }
        public string cOWhCode { get; set; }
        public string cIWhName { get; set; }
        public string cIWhCode { get; set; }
        public string bWhpos2 { get; set; }
        public string coutposcode { get; set; }
        public string cinposcode { get; set; }
        public int irowno { get; set; }
    }

    /// <summary>
    /// 调拨的其他出库单
    /// </summary>
    public class MaterialOtherOut
    {
        public string cCode { get; set; }
        public DateTime dDate { get; set; }       
        public string cDepCode { get; set; }
        public string cPersonCode { get; set; }
        public string cInvCode { get; set; }
        public string cInvName { get; set; }
        public string cComUnitName { get; set; }
        public decimal wrksl { get; set; }
        public decimal scanqty { get; set; }
        public decimal iQuantity { get; set; }
        public long autoid { get; set; }
        public long id { get; set; }
        public string cWhCode { get; set; }
        public string cWhName{ get; set; }
        public string cPosition { get; set; }
        public int irowno { get; set; }
    }


    /// <summary>
    /// 销售出库单
    /// </summary>
    public class SaDispatchlist
    {
        public string cDLCode { get; set; }
        public string cCusCode { get; set; }
        public string cCusName { get; set; }
        public DateTime dDate { get; set; }
        public string cDepCode { get; set; }
        public string cPersonCode { get; set; }
        public string cInvCode { get; set; }
        public string cInvName { get; set; }
        public string cComUnitName { get; set; }
        public decimal wrksl { get; set; }
        public decimal scanqty { get; set; }
        public decimal iQuantity { get; set; }
        public decimal fOutQuantity { get; set; }
        public int idlsid { get; set; }
        public int autoid { get; set; }  //就是idlsid ，为了pda处理方便更改名称
        public int dlid { get; set; }
        public string cWhCode { get; set; }
        public string cPosition { get; set; }

        public string cWhName { get; set; }
        public long irowno { get; set; }
        //public List<FIFOBarcodes> fifolist { get; set; }
    }


    /// <summary>
    /// 先进先出的推荐条码
    /// </summary>
    public class FIFOBarcodes
    { 
        public string barcodeno { get; set; } 
        public string cposcode { get; set; }
        public decimal qty { get; set; }
        public string bsaomiao { get; set; }

    }

    /// <summary>
    /// MES完工单
    /// </summary>
    public class ProductIn
    {
        public string cCode { get; set; }
        public string cMoCode { get; set; }
        public DateTime dDate { get; set; }
        public string cDepCode { get; set; }
        public string cPersonCode { get; set; }
        public string cInvCode { get; set; }
        public string cInvName { get; set; }
        public string cComUnitName { get; set; }
        public decimal wrksl { get; set; }
        public decimal scanqty { get; set; }
        public decimal iQuantity { get; set; }
        public long autoid { get; set; }
        public long id { get; set; }
        public string cWhCode { get; set; }
        public string cWhName { get; set; }
        public string cPosition { get; set; }
        public int irowno { get; set; }
        public int iMoDId { get; set; }

         
    }


  

 
    /// <summary>
    /// 送货单
    /// </summary>
    public class SrmSongHuo
    {
        public string BillNo { get; set; }
        public DateTime BillDate { get; set; }
        public decimal Num { get; set; }
        public string VenCode { get; set; }
        public string VenName { get; set; }
        public string cInvCode { get; set; }
        public string cInvName { get; set; }
        public string cInvStd { get; set; }
        public string cComUnitName { get; set; }
        public string cPoid { get; set; }
        public int iPosid { get; set; }
        public DateTime arrDate { get; set; }  //到货日期
        public string cUserId { get; set; }    //用户id
        public string cUserName { get; set; }  //用户名
        public string cWhcode { get; set; }  //仓库
        public string cType { get; set; }  //类型
        public string songhuoid { get; set; }  //类型
    }

    /// <summary>
    /// 送货单,两个子表，一个送货子表，一个条码明细
    /// </summary>
    public class  SongHuo
    {
        public string cCode { get; set; }
        public string cVenCode { get; set; }
        public string cVenName { get; set; }      
        public DateTime arrDate { get; set; }  //到货日期
        public string cUserId { get; set; }    //用户id
        public string cUserName { get; set; }  //用户名
        public string cWhcode { get; set; }  //仓库
        public string cType { get; set; }  //类型
        public List<SongHuos> fenpeilist { get; set; }  //类型
        public List<SongHuoBarcodes> songhuobarlist { get; set; }  //类型
    }
    /// <summary>
    /// 送货单子表
    /// </summary>
    public class SongHuos
    {
        public string cInvCode { get; set; }
        public string cInvName { get; set; }
        public string cInvStd { get; set; }
        public string cComUnitName { get; set; }
        public string cPoid { get; set; }
        public decimal Num { get; set; }
        public int iPosid { get; set; }
        public string songhuoid { get; set; }

    }
    /// <summary>
    /// 送货单barcode
    /// </summary>
    public class SongHuoBarcodes
    {
        public string cinvcode { get; set; }
        public string barcodeno { get; set; }
        public string ichecked { get; set; }

    }



    /// <summary>
    /// 到货拒收,两个子表，一个送货子表，一个条码明细
    /// </summary>
    public class DaoHuoJuShou
    {
        public string cCode { get; set; }
        public string cVenCode { get; set; }
        public string cVenName { get; set; }
        public DateTime arrDate { get; set; }  //到货日期
        public string cUserId { get; set; }    //用户id
        public string cUserName { get; set; }  //用户名
        public string cWhcode { get; set; }  //仓库
        public string cType { get; set; }  //类型
        public List<PuArrivalRefuse> fenpeilist { get; set; }  //类型
        public List<DaoHuoJuShouBarcodes> songhuobarlist { get; set; }  //类型
    }
    ///// <summary>
    ///// 送货单子表
    ///// </summary>
    //public class DaoHuoJuShous
    //{
    //    public string cInvCode { get; set; }
    //    public string cInvName { get; set; }
    //    public string cInvStd { get; set; }
    //    public string cComUnitName { get; set; }
    //    public string autoid { get; set; }
    //    public decimal scanqty { get; set; } 

    //}

    /// <summary>
    /// 送货单barcode
    /// </summary>
    public class DaoHuoJuShouBarcodes
    {
        public string cinvcode { get; set; }
        public string barcodeno { get; set; }
        public string ichecked { get; set; }

    }


    /// <summary>
    /// 条码内容
    /// </summary>
    public class PositionInvBarcode
    {
        public string CPOSCODE { get; set; }
        public string BARCODENO { get; set; }
        public string INVCODE { get; set; }
        public string INVNAME { get; set; }
        public string CSTATE { get; set; }
        public decimal TOTALQTY { get; set; }
    }

    /// <summary>
    /// 上架清单
    /// </summary>
    public class PostionChange
    {
        public string POSCODE { get; set; }
        public List<PostionChanges> barcodelist { get; set; }
    }

    public class PostionChanges
    {
        public string BARCODENO { get; set; }
    }



    /// <summary>
    /// 盘点单主表
    /// </summary>
    public class PanDianVouch
    {
        public string cOrg { get; set; }
        public string cCVCode { get; set; }
        public int id { get; set; }
        public DateTime dCVDate { get; set; }
        public string cWhCode { get; set; }
        public string cWhName { get; set; }
        public string cUserName { get; set; }
        public string cUserId { get; set; }
        public string cPwd { get; set; }
        public List<PanDianVouchs> fenpeilist { get; set; }
        public List<PanDianVouch_barcodes> barcodelist { get; set; }
    }
    /// <summary>
    /// 盘点单子表
    /// </summary>
    public class PanDianVouchs
    {
        public string irowno { get; set; }
        public int id { get; set; }
        public int autoID { get; set; }
        public string cInvCode { get; set; }
        public string cInvName { get; set; }
        public string cInvStd { get; set; }
        public string cCVBatch { get; set; }
        public string cPosCode { get; set; }
        public string iCVQuantity { get; set; }
        public string iCVCQuantity { get; set; }
        public decimal scanqty { get; set; }
        public string cFree1 { get; set; }
        public string cFree2 { get; set; }
        public string cWhCode { get; set; }
        public string cWhName { get; set; }
        public string dMadeDate { get; set; }


    }

    /// <summary>
    /// 已扫描盘点单子表
    /// </summary>
    public class PanDianVouch_barcodes
    {
        public string cCVCode { get; set; }
        public string cBarcode { get; set; }
        public string cPosCode { get; set; }
        public string cBatch { get; set; }
        public string cInvCode { get; set; }
        public decimal iQuantity { get; set; }
    }

     

}
